package top.kuxiao.crmserver.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 业务记录
 * </p>
 *
 * @author xiaozhang
 * @since 2022-01-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class BusinessRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "br_id", type = IdType.AUTO)
    private Integer brId;

    /**
     * 日期
     */
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(fallbackPatterns = "yyyy-MM-dd HH:mm:ss")
    private Date brDate;

    /**
     * 地点
     */
    private String brPlace;

    /**
     * 概要
     */
    private String brOutline;

    /**
     * 详细信息
     */
    private String brInformation;

    /**
     * 客户编号 外键
     */
    private Integer brCustomerId;
    /**
     * 客户信息
     * */
    @TableField(exist = false)
    private Customer customer;

    /**
     * 客户经理 外键
     */
    private Integer brAccountManagerId;
    /**
     * 客户经理信息
     * */
    @TableField(exist = false)
    private AccountManager accountManager;

}
